Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apple/t2: init #650

Merged
merged 1 commit into from
Jul 8, 2023
Merged

apple/t2: init #650

merged 1 commit into from
Jul 8, 2023

Conversation

networkException
Copy link
Member

Description of changes

This pull request adds all changes from https://github.com/kekrby/nixos-hardware as well as an update to the most recent kernel and a fix for keyboard backlight not working after suspend, making Apple Intel Macs with the T2 security chip quite usable overall.

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

Comment on lines 42 to 45
powerManagement = {
powerUpCommands = "${pkgs.kmod}/bin/modprobe apple_touchbar";
powerDownCommands = "${pkgs.kmod}/bin/rmmod apple_touchbar";
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's potentially racy to remove kernel modules this way:

serviceConfig.ExecStart = ''${pkgs.systemd}/bin/systemd-inhibit --what=sleep --why="fixing touchpad must finish before sleep" --mode=delay ${./fix_touchpad.sh}'';

also read here: fed22c2

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about the changes?

Co-authored-by: networkException <[email protected]>
@Mic92
Copy link
Member

Mic92 commented Jul 8, 2023

bors merge

@bors bors bot merged commit 47dca15 into NixOS:master Jul 8, 2023
1 check passed
@bors
Copy link
Contributor

bors bot commented Jul 8, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

  • tests

networkException added a commit to t2linux/wiki that referenced this pull request Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants